import { defineComponent, computed, openBlock, createElementBlock, unref } from "vue";
const _hoisted_1 = ["d"];
const _sfc_main = /* @__PURE__ */ defineComponent({
  props: {
    points: null
  },
  setup(__props) {
    const props = __props;
    const d = computed(() => {
      const points = props.points;
      const p0 = { x: (points[0].x + points[2].x) / 2, y: points[0].y };
      const p1 = { x: points[2].x, y: (points[2].y + points[4].y) / 2 };
      const p2 = { x: (points[0].x + points[2].x) / 2, y: points[4].y };
      const p3 = { x: points[0].x, y: (points[2].y + points[4].y) / 2 };
      const pathPoints = [p0, p1, p2, p3];
      const dArr = [];
      pathPoints.forEach((p) => {
        dArr.push(`${p.x} ${p.y}`);
      });
      const d2 = "M" + dArr.join("L") + "Z";
      return d2;
    });
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("path", {
        stroke: "#000000",
        style: {
          "stroke-width": 1,
          fill: "#ffffff"
        },
        d: unref(d)
      }, null, 8, _hoisted_1);
    };
  }
});
export { _sfc_main as default };
